/*
 * errors.h 
 *
 * Provides prototypes to error-
 * handling functions.
 *
 * Date:        $Date: 2011-12-11 21:56:24 +0000 (Sun, 11 Dec 2011) $
 * Revision:    $Revision: 16 $
 */

#ifndef ERRORS_H
#define ERRORS_H

/*typedef enum errors {Unknown, bla1, bla2, bla3} errorMsg;*/
static const char *errMap[] = {
    "Unknown exception",
    "File not found",
    "File handling failed", 
    "Memory allocation failed",
    "RegEx compilation error",
    "Error loading file",
    "Filenames missing. See -h for help.",
    "Unknown header type"
};

extern void printError(const int errorNr);
extern void printFileError(const int errorNr, const char *file);
extern void* mallocError(void *returnOfMalloc);

#endif
